package com.itsxb.feign;

import cn.dev33.satoken.annotation.SaIgnore;
import com.itsxb.fallback.LoginApiFallbackFactory;
import com.itsxb.pojo.dto.LoginDto;
import com.itsxb.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-uaa",contextId = "LoginApi",fallbackFactory = LoginApiFallbackFactory.class)
public interface LoginApi {
    @PostMapping("/login/saveLogin")
    R saveLogin(@RequestBody LoginDto loginDto);
}
